package com.mycity.util;

import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

public class MapUtil
{
	  public static Map sortByValue(Map unsortedMap){
		    Map sortedMap = new TreeMap(new ValueComparator(unsortedMap));
		    sortedMap.putAll(unsortedMap);
		    return sortedMap;
		  }
	  
	  
}


